//
//  MenuDarenModel.m
//  Products_B
//
//  Created by lanou on 16/6/3.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuDarenModel.h"

@implementation MenuDarenModel
+ (NSMutableArray *)modelConfigureWithDic:(NSDictionary *)json{
    NSMutableArray *modelArray = [NSMutableArray array];
    for (NSDictionary *dataDic in json[@"data"][@"data"]) {
        MenuDarenModel *model = [[self alloc]init];
        [model setValuesForKeysWithDictionary:dataDic];
        model.array = [NSMutableArray array];
        for (NSDictionary *postDic in dataDic[@"post"]) {
            MenuDarenSmallModel *smallModel = [[MenuDarenSmallModel alloc]init];
            [smallModel setValuesForKeysWithDictionary:postDic];
            [model.array addObject:smallModel];
        }
        [modelArray addObject:model];
    }
    return modelArray;
}
@end
